package com.sinping.qh.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;



/**
 * @author zhangjin
 * @create 2018/7/11
 */
@Aspect
@Component
public class ServiceAspect {

    private final static Logger logger = LoggerFactory.getLogger(HttpAspect.class);


    /**
     * 切入点
     */
    @Pointcut("execution(public * com.sinping.qh.service.app.records.*.*(..))")
    public void valid()
    {

    }

    @Before("valid()")
    public void doBefore(JoinPoint joinPoint)
    {
        
//        logger.info("method={}",joinPoint.getSignature());
//        for (int i = 0; i < joinPoint.getArgs().length; i++) {
//            logger.info("params={}",joinPoint.getArgs()[i].toString());
//        }

    }
}
